#!/bin/bash

echo 'hello centos!'

:<<*
 1.install wget
*
echo 'begin install wget............'
yum install -y wget
echo 'end install wget............'

:<<*
 2.setting repo
*
echo 'begin setting repo......'
cd /etc/yum.repos.d && cp CentOS-Base.repo CentOS-Base.repo.bak
wget http://mirrors.aliyun.com/repo/Centos-7.repo
mv Centos-7.repo CentOS-Base.repo
yum -y makecache && yum -y update
echo 'end setting repo......'

:<<*
 3.install and setting basic software
   yum
   telnet
   telnet-server
   gcc-c++   
   net-tools   
   bash-completion
   curl
   ntpdate	
*
echo 'begin install and setting basic software......'
yum -y install vim*
yum -y install telnet
yum -y install telnet-server
yum -y install gcc-
yum -y install net-tools
yum -y install bash-completion
source /usr/share/bash-completion/bash_completion
source /usr/share/bash-completion/completions/docker
yum -y install curl
yum -y install ntpdate
echo 'end  install and setting basic software......'
